|
Public Member Functions |
| | deBitmap () |
| | deBitmap (const char *filename) |
| void * | GetRscInterface (long interface_id) |
| deBoolean | LoadBMPFile (IdeFile *file) |
| deBoolean | LoadTGAFile (IdeFile *file) |
| deBoolean | LoadPCXFile (IdeFile *file) |
| deBoolean | LoadPNGFile (IdeFile *file) |
| deBoolean | LoadDDSFile (IdeFile *file) |
| deBoolean | LoadCMAPFile (IdeFile *file, const char *filename) |
| deBoolean | Reset () |
| void | Cleanup () |
| void * | GetData (u32 FaceNum) |
| | get the raw data contained in the bitmap
|
| long | GetWidth () |
| | get the width of this bitmap
|
| long | GetHeight () |
| | get the height of this bitmap
|
| IdeDriver::BPP | GetFormat () |
| | get the pixelformat of this bitmap
|
| long | GetBitDepth () |
| | get the bitdepth of this bitmap (multiple of 8 almost always)
|
| long | GetByteDepth () |
| | get the byte depth of this bitmap
|
| DWORD | GetImageSize () |
| | get the total amount of memory consumed by this bitmap
|
| long | GetNumFaces () |
| deBoolean | IsRenderTarget () |
| | get whether or not this bitmap is used as a render target
|
| long | GetScalingFactor () |
| deARGB | GetColorAt (long X, long Y) |
| | get the color of a certain pixel, given pixel coordinates (returns ARGB format)
|
| void | GetFloatColorAt (long X, long Y, deColor &color) |
| | get the color of a certain pixel, given pixel coordinates (using deColor format)
|
| long | GetMipLevels () |
| | retrieve the number of mip levels for this bitmap
|
| deBoolean | SetData (void *data, long ByteLength, u32 FaceNum) |
| void | SetWidth (long width) |
| void | SetHeight (long height) |
| void | SetFormat (IdeDriver::BPP Format) |
| void | SetImageSize (long size) |
| void | SetRenderTarget (deBoolean RenderTarget) |
| void | SetColorAt (long X, long Y, deARGB Color) |
| void | SetColorAt (long X, long Y, const deColor &color) |
| deBoolean | SetNumFaces (long NumFaces) |
| void | SetMipLevels (long MipLevels) |
| deBoolean | CopyRect (const IdeBitmap *&Source, deRect *SourceRect, long TargetX, long TargetY) |
| deBoolean | SaveToFileSystem (IdeFileSystem *FS, const char *filename) |
| deBoolean | SaveToFile (IdeFile *file) |
| | only saves to a BMP file
|
| void * | GetDriverData (long ID) |
| deBoolean | SetDriverData (long ID, void *Data, IdeDriver *Driver) |
| deBoolean | ConvertGrayScaleToDot3 (long numsamples, deFloat amplify) |
| | convert this grayscale bitmap into a 32-bit DOT3 bitmap
|
| deBoolean | BindGrayScaleAsAlphaMap (IdeBitmap *AlphaMap) |
| | use another bitmap (same height & width) to fill in the alpha channel in this one
|
| deBoolean | DownSampleMIP (void *&source, void *target, long SW, long SH, long SP, long TW, long TH, long TP, IdeDriver::BPP SFormat, IdeDriver::BPP TFormat) |
| IdeResourceBase * | MakeCopy () |
| | create a copy of the object in memory
|
Static Public Attributes |
| long | s_BitmapRscInterfaceID = 0 |
Protected Member Functions |
| virtual | ~deBitmap () |
| void | SetBitDepth (long depth) |
| long | WrappedIndex (long X, long Y) |
| long | WrappedIndex (long X, long Y, long Width, long Height) |
| deBoolean | DownSampleDXTC (void *&source, void *target, long SP, long SW, long SH, long TP, long TH, IdeDriver::BPP SFormat, IdeDriver::BPP TFormat) |
Protected Attributes |
| deTArray< u8 * > | m_Data |
| IdeDriver::BPP | m_Format |
| long | m_Width |
| long | m_Height |
| long | m_ByteDepth |
| long | m_ImageSize |
| long | m_MipLevels |
| deBoolean | m_RenderTarget |
| deTList< DriverBitmapEntry > | m_DriverData |
Friends |
| IdeBitmap * | IdeBitmap_CreateBitmapWithInfo (long Width, long Height, IdeDriver::BPP Format) |
| long | BPPByteDepth (IdeDriver::BPP BPPType) |